<?php
class indexControl extends control{
	public function index(){
		$db = new mysql("category");
		//$row = $db->limit(4)->select();
                $row1 = $db->where("pid=7")->select();
                $row2=$db->where("pid=4")->select();
                $this->assign("row1",$row1);
                $this->assign("row2",$row2);
		$this->display();
	}
        public function top(){
		$this->display();
	}
        public function bottom(){
		$this->display();
	}
}
?>